package com.shine.app.commons;

import java.net.URLEncoder;

public class Urls {

	public static final String API_Key = "API_Key";
	public static String API_VALUE = "e1ba7a3e-da3f-4dec-a4b2-f727d9733547";
	public static final String ROUTE = "https://dev-api.opentee.com";
	public static final String MOBILE = "mobile";
	public static final String VERSION = "v2";
	public static final String FIle_SEPARATOR = "/";
	public static final String BASE_URL = ROUTE + FIle_SEPARATOR + MOBILE
			+ FIle_SEPARATOR + VERSION + FIle_SEPARATOR;
	public static final String USER_API = "userapi";
	public static final String QUERY_API = "queryapi";
	public static final String REVIEW_API = "reviewapi";
	public static final String BOOKING_API = "bookingapi";

	public static String urlEncode(String input) {
		String result = "";
		if (StringUtils.isEmpty(input)) {
			return result;
		}
		try {
			result = URLEncoder.encode(input, "UTF-8");
		} catch (Exception e) {
			e.printStackTrace();
		}
		return result;
	}

}
